package com.atjyb.processschudulesimulator.pojo;

import java.util.ArrayList;
import java.util.Arrays;

public class Process {
    private int pID;
    private String pName;
    private int commendSize;
    private String[] commends;
    private ArrayList<Commend> separateCommends;


    public Process() {
    }

    public Process(int pID, String pName, String[] commends) {
        this.pID = pID;
        this.pName = pName;
        this.commends = commends;
    }

    public Process(int pID, String pName, String[] commends, ArrayList<Commend> separateCommends) {
        this.pID = pID;
        this.pName = pName;
        this.commends = commends;
        this.separateCommends = separateCommends;
    }

    public int getpID() {
        return pID;
    }

    public void setpID(int pID) {
        this.pID = pID;
    }

    public String getpName() {
        return pName;
    }

    public void setpName(String pName) {
        this.pName = pName;
    }

    public String[] getCommends() {
        return commends;
    }

    public void setCommends(String[] commends) {
        this.commends = commends;
    }

    public ArrayList<Commend> getSeparateCommends() {
        return separateCommends;
    }

    public void setSeparateCommends(ArrayList<Commend> separateCommends) {
        this.separateCommends = separateCommends;
    }

    public int getCommendSize() {
        return commendSize;
    }

    public void setCommendSize(int commendSize) {
        this.commendSize = commendSize;
    }

    @Override
    public String toString() {
        return "Process{" +
                "pID=" + pID +
                ", pName='" + pName + '\'' +
                ", commendSize=" + commendSize +
                ", commends=" + Arrays.toString(commends) +
                ", separateCommends=" + separateCommends +
                '}'+"\n";
    }
}
